﻿using System;

namespace Gamemaster.Console
{
    class Program
    {
        static void Main(string[] args)
        {
            try
            {
                foreach (ICommand command in Commands.Assemble(args))
                {
                    command.Execute();
                }
            }
            catch (ArgumentException error)
            {
                System.Console.WriteLine(error.Message);
            }
            catch (Exception error)
            {
                System.Console.WriteLine(error);
            }
        }
    }
}
